package com.unlcn.ils.kas.service.order.impl;

import com.unlcn.ils.kas.dao.mapper.order.OrderOtdDetailMapper;
import com.unlcn.ils.kas.dao.model.order.OrderOtdDetail;
import com.unlcn.ils.kas.service.order.OrderOtdDetailService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单在途跟踪明细 服务实现类
 * @author 罗必量
 * @since 2018-03-06
 */
@Service
public class OrderOtdDetailServiceImpl extends ServiceImpl<OrderOtdDetailMapper, OrderOtdDetail> implements OrderOtdDetailService {

    @Autowired
    private OrderOtdDetailMapper orderOtdDetailMapper;

    @Override
    public void batchInsert(List<OrderOtdDetail> orderOtdDetailList) {
        orderOtdDetailMapper.batchInsert(orderOtdDetailList);
    }

    @Override
    public OrderOtdDetail selectNewestInfo(String sysOrderNo) {
        return orderOtdDetailMapper.selectNewestInfo(sysOrderNo);
    }
}
